package org.michael.u.brg.i18n.litz;

import javax.swing.KeyStroke;

public class KeyPunch {
    public KeyPunch(KeyStroke keyStrokeToUse, String textToUse, char keyCharToUse) {
        keyStroke = keyStrokeToUse;
        text = textToUse;
        keyChar = keyCharToUse;
    }

    public KeyStroke getKeyStroke() {
        return keyStroke;
    }

    public String getText() {
        return text;
    }

    public char getKeyChar() {
        return keyChar;
    }

    public final String toString() {
        return "key=" + keyStroke + ", char=" + keyChar + ", text = \"" + text + "\", c=" + keyStroke.getKeyChar()
        + ", code=" + keyStroke.getKeyCode() + ", m=" + keyStroke.getModifiers() + ", e=" + keyStroke.getKeyEventType();
    }

    private final KeyStroke keyStroke;
    private final String text;
    private final char keyChar;
}
